<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested. 
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware'=>['web','admin.access']],function()
{
    Route::get('backs/index', 'BacksController@index');
    Route::get('fun1/index', 'Fun1Controller@index');
    Route::get('fun2/index', 'Fun2Controller@index');
    Route::get('fun2/operate', 'Fun2Controller@operate');
});


Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware'=>['web']],function()
{
    Route::any('msg/index', 'MsgController@index');
});